<!-- 维保管理|edit:编辑,delete:删除,add:添加,audit:审核 -->
<div class="layui-col-md12">
    <!-- 搜索框 -->
    <form class="layui-form" action="" style="margin-top:10px; ">
        <div class="layui-form-item layui-col-md12 layui-col-xs12">
            <div class="layui-input-inline" id='sel-car'>
                <input type="hidden" name="car_id" value="{$Think.get.car_id}" class="car_id">
                <input type="text" name="number" placeholder="点击选择车辆" autocomplete="off" class="layui-input number" readonly="readonly" value="{$Think.get.number}">
            </div>
            <div class="layui-input-inline">
                <input type="text" name='between' class="layui-input" id="between" placeholder="点击选择维修时间范围" readonly="readonly" value="{$Think.get.between}">
            </div>
            <button class="layui-btn layui-btn-normal">
                <span>查询</span>
            </button>
            <button type="reset" class="layui-btn layui-btn-primary reset">重置</button>
        </div>
    </form>
    <!-- 车辆操作 -->
    {if $Think.get.filter}
    <div>
        <div class="layui-btn-group" style="width: 100%;">
            <button class="layui-btn layui-btn-sm layui-btn-primary">
                <a href="{:url('/html/plus/service')}">查看可用记录</a>
            </button>
            <!-- <button class="layui-btn layui-btn-sm layui-btn-primary " style="float: right;border-left: 1px solid #c9c9c9;">
                导出数据
            </button> -->
        </div>
    </div>
    {else/}
    <div>
        <div class="layui-btn-group" style="width: 100%;">
            <button class="layui-btn layui-btn-sm layui-btn-primary" id="add" data-btn="add">
                新增
            </button>
            <button class="layui-btn layui-btn-sm layui-btn-primary delete-multiple" data-btn="delete">
                删除
            </button>
            <button class="layui-btn layui-btn-sm layui-btn-primary" data-btn="delete">

                <a href="{:url('/html/plus/service')}?filter=delete">查看已删除记录</a>
            </button>
            <!-- <button class="layui-btn layui-btn-sm layui-btn-primary " style="float: right;border-left: 1px solid #c9c9c9;">
                导出数据
            </button> -->
        </div>
    </div>
    {/if}
    <!-- 表单 -->
    <div class="table_margin_0">
        <table class="layui-hide" id="service" lay-filter="demo"></table>
    </div>
    <!-- 分页 -->
    <div id="page"></div>
</div>
<script type="text/html" id="demo">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="approve" data-btn="audit">审核</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit" data-btn="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-btn="delete">删除</a>
</script>
<script type="text/html" id="service_type">
    {{# if(d.service_type == 1 ){ }} 维修 {{# } else { }} 保养 {{# } }}
</script>
<script type="text/html" id="remind">
    {{# if(d.remind ==null){ }} 无提醒信息 {{# } else { }} 无提醒信息 {{# } }}
</script>
<script type="text/html" id="carId">
    {{# if(d.car.number  ){ }}
    <a href="{:url('html/car/car_detail')}?car_id={{d.car_id}}&number={{d.car.number}}" class="layui-table-link">{{ d.car.number }}</a>
     {{# } else { }}
      暂无车牌 
      {{# } }}
</script>